/***    
request.globalRequest(url,请求方式,obj数据,123,true单,true 多array)url, method, data, power, isUpload, isFiles
1===没登录前的请求头
2===携带请求头token
3===刷新token
***/
import request from '@/util/request/request.ts'
const apiLogin = {}
//  校验手机号是否注册
apiLogin.checkPhone = (data) => request.globalRequest({url:`/mobile/user/checkPhone`, method:'GET', data,power:1})
// 登录
apiLogin.login = (data) => request.globalRequest({url:`/mobile/user/login`, method:'POST', data, power:1})
// 修改登录页面的密码
apiLogin.updatePwd = (data) => request.globalRequest({url:`/mobile/user/logInRestPwd`, method:'PUT', data,power:1})
// 查询客户移动端是否必须登录
apiLogin.getMobileUserHasLogin = (data) => request.globalRequest({url:`/mobile/user/getMobileUserHasLogin`, method:'GET', data, power:1})
// 退出登录
apiLogin.logout=()=>request.globalRequest({url:`/mobile/user/logout`,method:'GET',power:2})
export default apiLogin